package models

import "time"

type BTCLikeAddress struct {
	Id                 int       `json:"id" db:"Id" gorm:"column:Id;primary_key"`
	CryptoCode         string    `json:"cryptoCode" db:"CryptoCode" gorm:"column:CryptoCode"`
	PayAddress         string    `json:"payAddress" db:"PayAddress" gorm:"column:PayAddress"`
	ScriptPubKeyHash   string    `json:"scriptPubKeyHash" db:"ScriptPubKeyHash" gorm:"column:ScriptPubKeyHash"`
	DerivationStrategy string    `json:"derivationStrategy" db:"DerivationStrategy" gorm:"column:DerivationStrategy"`
	KeyPath            string    `json:"keyPath" db:"KeyPath" gorm:"column:KeyPath"`
	SubKeyPath         string    `json:"subKeyPath" db:"SubKeyPath" gorm:"column:SubKeyPath"`
	UserId             string    `json:"userId" db:"UserId" gorm:"column:UserId"`
	MerchantId         string    `json:"merchantId" db:"MerchantId" gorm:"column:MerchantId"`
	CreateTime         time.Time `json:"createTime" db:"CreateTime" gorm:"column:CreateTime"`
	Property           int       `json:"property" db:"Property" gorm:"column:Property"`
}

func (BTCLikeAddress) TableName() string {
	return "BTCLikeAddress"
}